package ru.osu.acm.common.entities;

import ru.osu.acm.testing.Utils;

/**
 * User: aleksey
 * Date: Sep 28, 2009
 * Time: 2:30:04 PM
 */
public class Testcase {
    private int id;
    private int index;
    private Problem problem;
    private String input;
    private String output;

    public Testcase(int id, int index, Problem problem, String input, String output) {
        this.id = id;
        this.index = index;
        this.problem = problem;
        this.input = input;
        this.output = output;
    }

    public String getInputHtml() {
        return Utils.prepareSourceForHtml(input);
    }

    public String getOutputHtml() {
        return Utils.prepareSourceForHtml(output);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public Problem getProblem() {
        return problem;
    }

    public void setProblem(Problem problem) {
        this.problem = problem;
    }

    public String getInput() {
        return input;
    }

    public void setInput(String input) {
        this.input = input;
    }

    public String getOutput() {
        return output;
    }

    public void setOutput(String output) {
        this.output = output;
    }
}
